package appapi.service;

import appapi.Request.InspectionPageReq;
import appapi.Request.record.InspectionReq;
import appapi.Vo.EquipMaintenanVo;
import appapi.Vo.MaintenanPageVo;
import appapi.Vo.record.AddMaintenanVo;
import appapi.Vo.record.EditMaintenanVo;
import appapi.dto.AddEquipMaintenanDto;
import appapi.entity.Zhongjiao.EquipmentmaintenanDto;
import appapi.entity.Zhongjiao.MaintenanitemDto;
import appapi.entity.basic.UserInfo;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/22 14:34
 * @description:
 */
@Repository
public interface IEquipmentMaintenanService {

    List<MaintenanPageVo> SelectMaintenanPage(UserInfo userInfo, InspectionPageReq req);

    List<Map<String, Object>> SelectGetMaintenanList(Long equipId);
    List<MaintenanPageVo> SelectMaintenanPageNotoken(InspectionPageReq dto);

    int InsertMaintenan(AddEquipMaintenanDto dto);

    void UpdateMaintenan(EquipmentmaintenanDto dto);

    void DelMaintenan(Long mainId);

    void InsertMaintenanItem(MaintenanitemDto dto);

    EquipMaintenanVo SelectMaintenanDetail(Long maintenanId);

    int addInfo(AddMaintenanVo dto);

    int editInfo(EditMaintenanVo vo);

    int deleteInfo(List<Long> mainIds);

    PageInfo<MaintenanPageVo> getPage(InspectionPageReq req);

    List<MaintenanPageVo> getList(InspectionReq req);

    List<MaintenanPageVo> getLists(InspectionPageReq req);
}
